home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 3625 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: detroit.freenet.org!ab411
  2. From: ab411@detroit.freenet.org (David R. Conrad)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Checking to See if a File Exists
  5. Date: 30 Jan 1996 06:13:31 GMT
  6. Organization: Greater Detroit Free-Net, Detroit, MI
  7. Message-ID: <4ekcub$itc@detroit.freenet.org>
  8. References: <4eggcm$o0j@fido.asd.sgi.com> <DLtI7G.HpE@midway.uchicago.edu> <9601281412.AA0001c@doodey.demon.co.uk>
  9. Reply-To: ab411@detroit.freenet.org (David R. Conrad)
  10. NNTP-Posting-Host: detroit.freenet.org
  11.  
  12.  
  13. In a previous article, davea@quasar.engr.sgi.com (David B.Anderson) says:
  14. >In article <9601281412.AA0001c@doodey.demon.co.uk>,
  15. >Paul F. Robinson <pfr@doodey.demon.co.uk> wrote:
  16. >> 
  17. >>Your compiler library might have an  access()  function.
  18. >
  19. >Be careful: on  UN*X systems, access() uses different file
  20. >permissions checks than open()(or fopen()) to deterimine if 
  21. >you are allowed to get at the file.
  22.  
  23. Isn't this only true for setuid programs?  If the real and effective
  24. uid and gid are the same then this shouldn't matter, right?
  25.  
  26. [deleted remaining useful suggestions on check for the existence of files]
  27. -- 
  28. David R. Conrad, conrad@detroit.freenet.org, http://www.grfn.org/~conrad
  29. Hardware & Software Committee : finger -l conrad@grfn.org for public key
  30. Key fingerprint =  33 12 BC 77 48 81 99 A5  D8 9C 43 16 3C 37 0B 50
  31. No, his mind is not for rent to any god or government.
  32.